package com.ruoyi.web.controller.community.owner;

import java.util.ArrayList;
import java.util.List;

import com.ruoyi.community.service.IOwnerActivityService;
import com.ruoyi.community.service.IOwnerInfoService;
import com.ruoyi.community.service.IOwnerVoteService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.community.domain.OwnerNotice;
import com.ruoyi.community.domain.OwnerInfoCardForApp;
import com.ruoyi.community.service.IOwnerNoticeService;
import com.ruoyi.community.service.IOwnerInfoService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 业委会汇总信息信息Controller
 *
 * @author ruoyi
 * @date 2021-08-07
 */
@RestController
@RequestMapping("/community/owner")
public class OwnerInfoController extends BaseController
{
    @Autowired
    private IOwnerNoticeService ownerNoticeService;

    @Autowired
    private IOwnerVoteService ownerVoteService;

    @Autowired
    private IOwnerActivityService ownerActivityService;

    @Autowired
    private IOwnerInfoService ownerInfoService;

    @GetMapping("/preview")
    public List<OwnerInfoCardForApp> listForApp()
    {
        List<OwnerInfoCardForApp> list = ownerInfoService.selectOwnerCardList();
        return list;
    }

}
